package iohomework;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {

        File file=new File("fos.dat");
        FileInputStream fis=new FileInputStream(file);
        System.out.println(fis.read());//第一个 2
        System.out.println(fis.read());//第二个 3
        System.out.println(fis.read());//第三个 0
        System.out.println(fis.read());//读到末尾 返回-1
        fis.close();
    }
}
